package ro.prjmanager.core.annotations;


public @interface  EditOptions {
    int size() default 20;
    String initValue() default "";
    String defaultValue() default "";
    String dataUrl() default "";
    String value() default "";
    int pos();
   
    String prefix() default "&nbsp;&nbsp;&nbsp;&nbsp;";
    String suffix() default "";
    String edittype() default "";
    int rows() default 0;
    int cols() default 0;
    boolean required() default false;


    String DATE_INIT="function(el) {\n" +
            "                $(el).datepicker({dateFormat:fmtDate});\n" +
            "            }";
    String DATE_DEFAULT_VALUE="function() {\n" +
            "                                var currentTime = new Date();\n" +
            "                                var month = parseInt(currentTime.getMonth() + 1);\n" +
            "                                month = month <= 9 ? \"0\" + month : month;\n" +
            "                                var day = currentTime.getDate();\n" +
            "                                day = day <= 9 ? \"0\" + day : day;\n" +
            "                                var year = currentTime.getFullYear();\n" +
            "                                if(fmtDate=='yy-mm-dd')\n" +
            "                                    return year + \"-\" + month + \"-\" + day;\n" +
            "                                else return day+\"-\"+month+\"-\"+year;";
}
